
<div class="contextual">
  <%= link_to_if_authorized(l(:label_foos_new), 
                            {:action => 'new', :project_id => @project}, 
                            :class => 'icon icon-add') %>
</div>

<h2> <%=h l :label_standard %> </h2>

<% if (@foos.blank?) %>
  <p class="nodata"><%= l(:label_no_data) %></p>
<% else %>

<table class="list">

<thead><tr>  
<th>#</th> <th><%=h l(:field_subject) %></th>
</tr></thead>

<tbody>
<% @foos.each do |foo| %>
  <tr class="<%= cycle('odd', 'even') %>">
  <td><%= foo.id %></td>
  <td><%= link_to(foo.subject, {:action=> :show, :project_id => @project, :id => foo.id} ) %></td>
</tr>
<% end %>
</tbody>

</table>

<% end %>
